package com.yw.ffmpeg.player;

/**
 * @ProjectName: AndroidFFMpeg
 * @Package: com.yw.ffmpeg.player
 * @ClassName: OpenSLPlayer
 * @Description: opensl音频播放器
 * @Author: wei.yang
 * @CreateDate: 2021/9/3 9:36
 * @UpdateUser: 更新者：wei.yang
 * @UpdateDate: 2021/9/3 9:36
 * @UpdateRemark: 更新说明：
 * @Version: 1.0
 */
public class OpenSLPlayer {
    /**
     * 开始播放
     *
     * @return
     */
    public static native int play(String path);

    /**
     * 停止播放
     *
     * @return
     */
    public static native int stop();

    static {
        System.loadLibrary("native-lib");
    }

}
